#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int mod = 9901;
int a, b;
int qmi(int a, int k)
{
    a %= mod;
    int res = 1;
    while (k)
    {
        if (k & 1) res = res * a % mod;
        a = a * a % mod;
        k >>= 1;
    }
    return res;
}
int sum(int p, int k)
{
    if (k == 1) return 1;
    if (k % 2 == 1) return (1 + p % mod * sum(p, k - 1)) % mod;
    return (1 + qmi(p, k / 2)) * sum(p, k / 2) % mod;
}
int main()
{
    cin >> a >> b;
    int res = 1;
    for (int i = 2; i <= a / i; i++)
    {
        int s = 0;
        while (a % i == 0)
        {
            a /= i;
            s++;
        }
        res = res * sum(i, s * b + 1) % mod;
    }
    if (a > 1) res = res * sum(a, b + 1) % mod;
    if (a == 0) res = 0;
    cout << res << endl;
    return 0;
}